﻿using Reckoning;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace TestReckoning
{
    
    
    /// <summary>
    ///This is a test class for StopWordInfoTest and is intended
    ///to contain all StopWordInfoTest Unit Tests
    ///</summary>
    [TestClass()]
    public class StopWordInfoTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for StopWordInfo Constructor
        ///</summary>
        [TestMethod()]
        public void StopWordInfoConstructorTest()
        {
            string word = string.Empty; 
            StopWordInfo target = new StopWordInfo(word);
            Assert.IsNotNull(target);
        }
        
        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest0()
        {
            StopWordInfo target = new StopWordInfo(); 
            object obj = null; 
            bool expected = false; 
            bool actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);            
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest1()
        {
            StopWordInfo target = new StopWordInfo();
            string obj = "string";
            bool expected = false;
            bool actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest2()
        {
            StopWordInfo target = new StopWordInfo();
            StopWordInfo obj = new StopWordInfo("not");
            bool expected = false;
            bool actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest3()
        {
            StopWordInfo target = new StopWordInfo("not");
            StopWordInfo obj = new StopWordInfo("not");
            bool expected = true;
            bool actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest4()
        {
            StopWordInfo target = new StopWordInfo("not");
            string obj = "not";
            bool expected = true;
            bool actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for GetHashCode
        ///</summary>
        [TestMethod()]
        public void GetHashCodeTest()
        {
            StopWordInfo target = new StopWordInfo("hello"); 
            int expected = "hello".GetHashCode();
            int actual = target.GetHashCode();
            Assert.AreEqual(expected, actual);            
        }

        /// <summary>
        ///A test for Word
        ///</summary>
        [TestMethod()]
        public void WordTest0()
        {
            string expected = "thing"; 
            StopWordInfo target = new StopWordInfo(expected);                        
            string actual = target.Word;
            Assert.AreEqual(expected, actual);            
        }

        /// <summary>
        ///A test for Word
        ///</summary>
        [TestMethod()]
        public void WordTest1()
        {
            string expected = "thing";
            StopWordInfo target = new StopWordInfo();
            target.Word = expected;
            string actual = target.Word;
            Assert.AreEqual(expected, actual);
        }
    }
}
